#!/usr/bin/env bash
ps -ef | grep -w start_searchlist_process.sh | grep -v grep | awk '{print $2}' | xargs kill -9
ps -ef | grep -w start_detail_process.sh | grep -v grep | awk '{print $2}' | xargs kill -9

echo '杀掉监控脚本'
echo '休眠5s'
inter_time=5
sleep ${inter_time}

nohup sh start_searchlist_process.sh > log/start_searchlist_process.file 2>&1 &
nohup sh start_detail_process.sh > log/start_detail_process.file 2>&1 &

echo '监控脚本重启完成!'